package com.example.reagent_management.ui.activity.data;

import com.example.reagent_management.ui.home.pojo.OperateCounts;
import com.example.reagent_management.ui.home.pojo.PositionCounts;
import com.kunminx.architecture.ui.callback.ProtectedUnPeekLiveData;
import com.kunminx.architecture.ui.callback.UnPeekLiveData;

import java.util.List;

/*
* 初始化位置数
* */
public class PositionRequest {
    //
    private final UnPeekLiveData<List<PositionCounts>> mInitPosition = new UnPeekLiveData<>();

    public ProtectedUnPeekLiveData<List<PositionCounts>> getList() {
        return mInitPosition;
    }

    private final UnPeekLiveData<List<OperateCounts>> mInitOperate = new UnPeekLiveData<>();

    public ProtectedUnPeekLiveData<List<OperateCounts>> getLists() {
        return mInitOperate;
    }

    public void requestList(){
        DataRepository.getInstance().requestList(mInitOperate);
    }

}
